<?php
	$v_params = $this->getParams();
	$listaGeral = $v_params[0];
	$colors = new colorBlocks;
?>
<div class="conteudoDinamico" align="center">
	<table class="lista lsModal" style="width:95%">
		<thead>
            <tr>
            	<th>&nbsp;</th>
                <th>Recurso</th>
                <th>Custo</th>
                <th>&nbsp;</th>
            </tr>
        </thead>
        <tbody>
			<?php 
				foreach($listaGeral as $ls){ if($ls["id_os"]){
					$colors->getColor($ls["no_recurso"]); 
			?>
            <tr>
            	<td class="icon">
                    <div style="background: <?php echo $colors->color; ?>">
                        <?php echo $colors->colorChar; ?>
                    </div>
                </td>
                <td>
                    <a class="externo" href="./recursos/listar#mostrarRecurso-<?php echo $ls["id_recurso"] ?>">
						<?php echo $ls["no_recurso"] ?>
                    </a>
                </td>
                <td>
                    <?php echo "R$ " .number_format($ls["vl_custo_recurso"], 2, ',', '.'); ?>
                </td>
                <td>
                  	<a class="btn_laranja" href="./Atividade/mostrarAtividade/?id=<?php echo 
					$ls["id_os_recurso"] ?>">Opções</a>
                </td>
            </tr>
            <?php }else { echo '<td colspan="4">Nenhum recurso atribuído a esta OS</td>'; } } ?>
		</tbody>
        <tfoot class="nav">
            <tr>
                <td colspan="4">
                    <div class="pagination"></div>
                    <div class="paginationTitle">Página</div>
                    <div class="selectPerPage"></div>
                    <div class="status"></div>
                </td>
            </tr>
        </tfoot>   	
	</table>
</div>
    